<template>
  <div>
<div v-for="item in arr" :key="item" class="'subbox">
<input type="checkbox" :value="item" v-model="newArr">{{item}}
  </div>
  <ul>
    <li v-for="item in newArr" :key="item">{{item}}</li>
  </ul>
  </div>
</template>

<script>
export default {
  data () {
    return {
      arr: ['科幻', '喜剧', '动漫', '冒险', '科技', '军事', '娱乐', '奇闻'],
      newArr: []
    }
  },

  methods: {
    addFn (index) {
      this.newArr.push(this.arr[index])
    }
  }
}
</script>

<style scoped lang='less'>
.subbox{
  display: inline-block;
}
</style>
